# coding=utf-8
import os
from NovelSpider.settings import MONGODB_DATABASES
from mongoengine import register_connection

SPIDER_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

for name, data in MONGODB_DATABASES.items():
    register_connection(**data)